package crazy.memory1;

public class HideTest
{
	public static void main(String[] args)
	{
		Derived1 d = new Derived1();//Derived对象会保存2个tag实例变量
		//System.out.println(((Parent) d).tag);
		System.out.println(d.s());
	}
}

class Parent
{
	public String tag = "crazy java....";
}

class Derived1 extends Parent
{
	private String tag = "Java ee";
	
	public String s()
	{
		return super.tag;
	}
}
